import { defineConfig } from '@umijs/max';

export default defineConfig({
  antd: {
    dark: false,
	theme: {},
  },
  access: {},
  model: {},
  initialState: {},
  request: {},
  layout: {
    title: '记事本',
  },
  routes: [
    // {
    //   path: '/',
    //   redirect: '/home',
    // },
    {
      name: '全部笔记',
      path: '/',
      component: './Home',
	//   access: 'user',
    },
    {
      name: '写笔记',
      path: '/edit/:uid/:articleId',
      component: './Edit',
	  headerRender: false,
	//   access: 'admin',
    },
    {
      name: '看笔记',
      path: '/look/:uid/:articleId',
      component: './Look',
	//   access: 'admin',
    },
    {
      name: '权限演示',
      path: '/access',
      component: './Access',
	//   access: 'admin',
    },
    {
      name: ' CRUD 示例',
      path: '/table',
      component: './Table',
    },
    {
      name: '登陆',
      path: '/login',
      component: './Login',
	  layout:false
    },
  ],
  npmClient: 'pnpm',
});

